package com.gcit.seniorWish.web.modular.examinee.service;

import com.gcit.seniorWish.core.node.SelectNode;
import com.gcit.seniorWish.web.common.constant.cache.Cache;
import com.gcit.seniorWish.web.common.constant.cache.CacheKey;
import com.gcit.seniorWish.web.common.persistence.model.SeniorSchoolClass;

import java.util.List;

import org.antlr.v4.runtime.misc.Nullable;

import com.baomidou.mybatisplus.service.IService;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 班级信息表 服务类
 * </p>
 *
 * @author tonglu
 * @since 2018-03-19
 */
public interface ISeniorSchoolClassService extends IService<SeniorSchoolClass> {

	List<SelectNode> listSchoolClassForSelect2(@Nullable String term,@Nullable String schoolId,@Nullable String classId);

	@Transactional
	@CacheEvict(value = Cache.BUSS, key = "'" + CacheKey.SENIOR_CLASS + "'+#schoolClass.id")
	void mergeSeniorSchoolClass(SeniorSchoolClass schoolClass);
}
